<template>
  <div class="correct-component-container">
    <el-dialog v-model="store.correctOpen" :show-close="false" append-to-body class="dialogClass" fullscreen draggable
               :header="null"
               :footer="null"
    >
      <correct-component @outCorrect="outCorrect" :examId="store.examId"/>
    </el-dialog>
  </div>
</template>
<script setup lang="ts">
import {correctStore} from "@/stores/exam/correctStore.ts";
import CorrectComponent from "@/components/corrent/correctComponent.vue";
import {defineEmits} from "vue";
const emit = defineEmits(['refresh'])
const store=correctStore()
const outCorrect=()=>{
  store.correctOpen=false
  store.examId=0
  emit('refresh')
}
</script>
<style scoped>
.correct-component-container{
  width: 100%;
  height: 100%;
}
</style>